package com.ebraga.trackerclub.android.util.core;

import android.content.Context;
import android.content.res.AssetManager;

import com.ebraga.trackerclub.android.util.api.AndroidContext;

public class AndroidContextImpl implements AndroidContext{

	Context context;
	String dbName;
	
	@Override
	public Context getApplicationContext() {
		return this.context.getApplicationContext();
	}
	
	public void setContext(Context context) {
		this.context = context;
	}

	@Override
	public void setBDName(String dbName) {
		this.dbName = dbName;		
	}

	@Override
	public String getDBName() {
		return dbName;
	}

	@Override
	public AssetManager getAssets() {
		return getApplicationContext().getResources().getAssets();
	}
	
	

}
